<div class="width800 right">

<?php
if(count($records)){
?>
     <div id="content">
         <?php
            foreach($records as $key=>$item){
        ?>
         <div class="detail_item_shop  border_none">
             <a class="main_img_shop float_l" href="<?php echo get_post_detail_url($item['id']); ?>">
                 <img src="<?php echo base_url($item['image']); ?>" class="show_main_img">
             </a>
             <div class="info_item_shop float_l width_83p">
                 <div class="area_sub_info_shop">
                     <a href="<?php echo get_post_detail_url($item['id']); ?>">
                         <h2 class="width_500"><?php echo $item['name']; ?></h2>
                     </a>

                     <div class="shop_view_fb">
                         <p class="txt_gray mr_bt_5"><strong>ID tin: <?php echo $item['id']; ?></strong></p>
                         <span class="txt_gray float_l"><?php echo date('H:s:m  |  d.m.Y',$item['createdTime']) ?>&nbsp; - &nbsp;</span>
                         <span class="view_item"></span><b class="txt_gr_bold float_l"><?php echo $item['hit'] ?>&nbsp;- &nbsp;</b>
                         <span class="feedback_item"></span><b class="txt_gr_bold float_l">4</b>
                     </div>
                 </div>
                 <div class="area_evn_item_shop" >
                     <a title="Sửa tin" href="<?php echo site_url('post/edit/'.$item['id']); ?>" target="_blank" class="evn_item_shop float_l" style="display:block;">Sửa</a>
                     <a href="mng_item_shop.html?cmd=list_item&amp;action=hide_item&amp;id=1513646&amp;sec_key=365909dd629ba00109a52ea7feb97bfa" title="Ẩn tin" class="evn_item_shop float_l" style="display:block;">Ẩn tin</a>
                     <a href="javascript:void(0);" onclick="ebItem.upItem(1513646)" class="evn_item_shop float_l" style="display:block;">Up tin</a>
                     <a onclick="ebUser.schedule_config(1513646,0);" href="javascript:void(0)" class="evn_item_shop float_l" style="display:block;">Sửa lịch up tin</a>
                     <a onclick="ebUser.schedule_up(1513646,0);" href="javascript:void(0)" class="evn_item_shop float_l" style="display:block;">Xóa lịch up tin</a>
                     <a onclick="ebUser.schedule_up(1513646,0);" href="javascript:void(0)" class="evn_item_shop float_l" style="display:block;">Xóa tin đăng</a>
                 </div>
             </div>

         </div>
     <?php } ?>
         <div class="divFooter clear">
        <?php  echo $pagination; ?>
    </div>
</div>
<?php }else {
    echo "Chua co tin nao";
}
?>
</div>

<script type="text/javascript">
    $(document).ready(function(){
        jQuery("a.link-page").live('click',function(){
            var this_url = $(this).attr("href");
            $.post(this_url,function(data){
                jQuery('#content').html(data);
            });
            return false;
        });
    });
</script>
